<?php
class Core_Model_DbTable_BufferComments extends Core_Model_DbTable_Base_Buffer {
    protected $_name = 'buffer_comments';
    protected $_id_social_name = 'id_social_comment';
    
    public function getCommentDetail($id_socials) {
        $cols = array (
            'id_social_page',
            'id_social_user',
            'id_social_post',
            'id_social_comment',
            'created_time'
        );
        $sql = $this->select()
                    ->from($this->_name, $cols)
                    ->where("id_social_comment IN (?)", $id_socials);
        $rows = $this->fetchAll($sql);
        return $rows->toArray();
    }
}
?>
